package cn.doitedu.hebust;

public class GetArrayMax {

    public static void main(String[] args) {
        int[] arr = {3,4,6,8,2,1,10};
        int max = arr[0];
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] > max ){
               max = arr[i];
            }
        }
        System.out.println("最大值是： " + max);
    }


}
